from BasicLibraries import *
import fun_descriptive as fd
import os
os.environ["PATH"] += os.pathsep+'/Library/TeX/texbin'



color = ['#631919', '#009c9b', '#fb7c54', '#85af38']
dsc = fd.Descriptive()

#%% Explore the data over the full population
initiatives, missing_sdgs, initiatives_sdgs, initiatives_to_remove, dt, res, resT, resS,  R, RN, S, SN = dsc.get_BRD(sdgs = [6,7,9,11,12,13,14,15] , diversification_measure='entropy')

#%% Temporal evolution and distribution of diversifity
dsc.plot_pop_level_diversification(dt, res, resS,  S, SN, R, RN, save_=True)

#%%
dsc.plot_full_sankey(dt, [6,7,9,11,12,13,14,15], initiatives)

#%% Show that in general entropy and total effort should not be correlated
u,g,l = dsc.make_simulated_entropy(dt, initiatives_sdgs, save_=True)



